<?php

namespace Desktopd\MUA;


// SMTP client (MUA implementation)
class SMTPSubmitter extends Submitter {
    protected $senderAddress;
    protected $clientConfig;
    protected $debugHandlers = array();
    
    public function __construct (EmailAddress $senderAddress, SMTPClient $clientConfig) {
        $this->senderAddress = $senderAddress;
        $this->clientConfig = $clientConfig;
    }
    
    public function startSubmission () {
        $submission = new SMTPSubmission($this, $this->clientConfig);
        return $submission;
    }
    
    public function getSenderAddress () {
        return $this->senderAddress;
    }
    
}


// vim: ts=4 et ai

